#ifndef CIRCUITGRAPH_H
#define CIRCUITGRAPH_H
#include "vector"
#include "Gate.h"
#include "EdgeNode.h"
#include "VNode.h"
#include "QStack"
#include "QDebug"
class CircuitGraph
{
public:
    QVector <VNode> gates;
    QVector <Gate*> inputs;
    QVector <Gate*> outputs;
    CircuitGraph();
    void setEdge(int from,int to);
    int selectGate_1(int mouse_x,int mouse_y);//遍历有的门，匹配坐标信息
    void selectGate_2(int mouse_x,int mouse_y);//遍历有的门，匹配坐标信息
    void gateMove(int x,int y,int i);
    void topology();//拓扑赋值
    QString zhenzhibiao();
};
#endif // CIRCUITGRAPH_H
